package com.demo;
import com.methods.Shape;
import com.methods.Circle;
import com.methods.Rectangle;
/**
 * 测试类
 * 2017/8/20.
 * @author Erik
 * @version 0.1
 * @since JDK1.8
 * @see com.methods.Shape
 * @see com.methods.Circle
 * @see com.methods.Rectangle
 */
public class Test {
    public static void main(String[]args){
        Shape circle=new Circle(11.2);
        Shape rect=new Rectangle(12.3,45.6);

        circle.area();
        rect.area();
    }
}
